﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;

namespace IDAL {
    public interface IContactGroup {
        /// <summary>
        /// I：根据查询条件获取分组列表
        /// </summary>
        /// <param name="strwhere"></param>
        /// <returns></returns>
        DataTable GetList(string strwhere);
        /// <summary>
        /// I：添加分组
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool Add(Model.ContactGroup model);
        /// <summary>
        /// I：根据分组编号，获取分组信息
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Model.ContactGroup GetModel(int Id);
        /// <summary>
        /// I：根据分组名称，获取分组信息
        /// </summary>
        /// <param name="groupName"></param>
        /// <returns></returns>
        Model.ContactGroup GetModel(string groupName);
        /// <summary>
        /// I：根据指定ID，删除分组
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        bool Delete(int Id);
        /// <summary>
        /// I：更新分组信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool Update(Model.ContactGroup model);
    }
}
